//
//  APIRequest.m
//  PostRequest
//
//  Created by iOS on 15/2/12.
//  Copyright (c) 2015年 iOS. All rights reserved.
//

#import "APIRequest.h"

@implementation APIRequest

+ (instancetype)sharedClient
{
    static APIRequest *sharedClient = nil;
    static dispatch_once_t onceToken;
    
    dispatch_once(&onceToken, ^{
        sharedClient = [[APIRequest alloc] initWithBaseURL:[NSURL URLWithString:@"http://www.cloudpeng.com:8102/"]];
//        sharedClient.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone];
//        sharedClient.requestSerializer = [AFJSONRequestSerializer serializer];
//        sharedClient.responseSerializer = [AFJSONResponseSerializer serializer];
//        [sharedClient.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Accept"];
//        [sharedClient.requestSerializer setValue:@"application/json; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
    });
    return sharedClient;
}



@end
